#pragma once

#include <windows.h>
#include <list>
using std::list;

class ClickDetector
{
public:
	int GetClicks();

public:
	ClickDetector(int supportingClicks);

private:
	list<DWORD> timeList;
	list<short> xPosList;
	list<short> yPosList;

	int maxClicks;
	DWORD dblClickTime;
	int dblClickX;
	int dblClickY;

private:
	void UpdateClicks();
};
